﻿using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
using OfficeOpenXml.Table;
using System;

namespace NP.BPMReportPlatform.FlowManagement.Dto
{
    /// <summary>
    /// 获取流程出参
    /// </summary>
    [ExcelExporter(Name = "流程报表", TableStyle = TableStyles.Light10, AutoFitAllColumn = true)]
    public class GetFlowOutput
    {
        /// <summary>
        /// 流程编号
        /// </summary>
        [ExporterHeader(DisplayName = "流程编号")]
        public string InstanceNumber { get; set; }

        /// <summary>
        /// 单据详情链接
        /// </summary>
        [IEIgnore(IsExportIgnore = true)]
        public string Url { get; set; }

        /// <summary>
        /// 流程主题
        /// </summary>
        [ExporterHeader(DisplayName = "流程主题")]
        public string Topic { get; set; }

        /// <summary>
        /// 发起人
        /// </summary>
        [ExporterHeader(DisplayName = "申请人")]
        public string StartUserName { get; set; }

        /// <summary>
        /// 制单日期
        /// </summary>
        [ExporterHeader(DisplayName = "制单日期")]
        public DateTime StartTime { get; set; }

        /// <summary>
        /// 当前步骤
        /// </summary>
        [ExporterHeader(DisplayName = "当前步骤")]
        public string LatestActivityName { get; set; }

        /// <summary>
        /// 审批人
        /// </summary>
        [ExporterHeader(DisplayName = "审批人")]
        public string ActivityResolverName { get; set; }

        /// <summary>
        /// 状态编码
        /// </summary>
        [IEIgnore(IsExportIgnore = true)]
        public int Status { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [ExporterHeader(DisplayName = "状态")]
        public string StatusName { get; set; }

        [ExporterHeader(IsIgnore = true)]
        public int InstanceId { get; set; }

    }
}
